package com.le.tester.tip;

/**
 * createTime：2022/2/8 10:46
 * description：程序可见性demo
 */
public class Sync extends Thread {
    static volatile boolean isRun = true;


    public static void main(String[] args) throws InterruptedException {
        Integer temp = 2;
        Integer douYin = 1;
        Integer meiTuan = 2;

        if (!temp.equals(douYin) && !temp.equals(meiTuan)) {
            return;
        }
    }
}
